package com.cf.controller;

import com.cf.performance.core.Performance;
import com.cf.service.Service1;
import com.cf.service.Service2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * boot-performance-TestController
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/19 下午 02:36
 */
@RestController
public class TestController {

    @Autowired
    private Service1 service1;

    @Autowired
    private Service2 service2;

    @Performance
    @RequestMapping("/test")
    public String test() throws InterruptedException {
        return service1.s1() + service2.s2();
    }

}
